home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / osi / isode / dosisode / DOSISODE80.ZIP / ISODE8.WRK / UNIX / H / ERRNO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-26  |  4.1 KB  |  110 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef errno_h
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. #define ENOENT     2        /* No such file or directory    */
  21. #define ENOTDIR  3              /* No path                      */
  22. /*#define EMFILE     4        /* Too many open files        */
  23. #define EINTR        4        /* Interrupted system call */
  24. #define EACCES     5        /* Permission denied        */
  25. #define EBADF     6        /* Bad file number        */
  26. #define EARENA   7        /* Arena trashed        */
  27. #define ENOMEM     8        /* Not enough core        */
  28. #define ESEGV    9        /* invalid memory address    */
  29. #define EBADENV 10        /* invalid environment        */
  30. #define ENODEV    15        /* No such device        */
  31. #define EINVAL    19        /* Invalid argument        */
  32. #define E2BIG    20        /* Arg list too long        */
  33. #define ENOEXEC 21        /* Exec format error        */
  34. #define EXDEV    22        /* Cross-device link        */
  35. #define EDOM    33        /* Math argument        */
  36. #define ERANGE    34        /* Result too large        */
  37. /*#define EEXIST    35        /* File already exists        */
  38. #define EEXIST    17        /* File already exists        */
  39.  
  40. #define ENFILE        23        /* File table overflow */
  41. #define EMFILE        24        /* Too many open files */
  42. #define ENOTTY        25        /* Not a typewriter */
  43. #define ETXTBSY        26        /* Text file busy */
  44. #define EFBIG        27        /* File too large */
  45. #define ENOSPC        28        /* No space left on device */
  46. #define ESPIPE        29        /* Illegal seek */
  47. #define EROFS        30        /* Read-only file system */
  48. #define EMLINK        31        /* Too many links */
  49. #define EPIPE        32        /* Broken pipe */
  50.  
  51. /* non-blocking and interrupt i/o */
  52. #define EWOULDBLOCK    35        /* Operation would block */
  53. #define EINPROGRESS    36        /* Operation now in progress */
  54. #define EALREADY    37        /* Operation already in progress */
  55. /* ipc/network software */
  56.  
  57.     /* argument errors */
  58. #define ENOTSOCK    38        /* Socket operation on non-socket */
  59. #define EDESTADDRREQ    39        /* Destination address required */
  60. #define EMSGSIZE    40        /* Message too long */
  61. #define EPROTOTYPE    41        /* Protocol wrong type for socket */
  62. #define ENOPROTOOPT    42        /* Protocol not available */
  63. #define EPROTONOSUPPORT 43        /* Protocol not supported */
  64. #define ESOCKTNOSUPPORT 44        /* Socket type not supported */
  65. #define EOPNOTSUPP    45        /* Operation not supported on socket */
  66. #define EPFNOSUPPORT    46        /* Protocol family not supported */
  67. #define EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  68. #define EADDRINUSE    48        /* Address already in use */
  69. #define EADDRNOTAVAIL    49        /* Can't assign requested address */
  70.  
  71.     /* operational errors */
  72. #define ENETDOWN    50        /* Network is down */
  73. #define ENETUNREACH    51        /* Network is unreachable */
  74. #define ENETRESET    52        /* Network dropped connection on reset */
  75. #define ECONNABORTED    53        /* Software caused connection abort */
  76. #define ECONNRESET    54        /* Connection reset by peer */
  77. #define ENOBUFS        55        /* No buffer space available */
  78. #define EISCONN        56        /* Socket is already connected */
  79. #define ENOTCONN    57        /* Socket is not connected */
  80. #define ESHUTDOWN    58        /* Can't send after socket shutdown */
  81. #define ETOOMANYREFS    59        /* Too many references: can't splice */
  82. #define ETIMEDOUT    60        /* Connection timed out */
  83. #define ECONNREFUSED    61        /* Connection refused */
  84.  
  85.     /* */
  86. #define ELOOP        62        /* Too many levels of symbolic links */
  87. #define ENAMETOOLONG    63        /* File name too long */
  88.  
  89. /* should be rearranged */
  90. #define EHOSTDOWN    64        /* Host is down */
  91. #define EHOSTUNREACH    65        /* No route to host */
  92. #define ENOTEMPTY    66        /* Directory not empty */
  93.  
  94. /* quotas & mush */
  95. #define EPROCLIM    67        /* Too many processes */
  96. #define EUSERS        68        /* Too many users */
  97. #define EDQUOT        69        /* Disc quota exceeded */
  98.  
  99. #ifdef __cplusplus
  100. }
  101. #endif
  102.  
  103. #ifndef errno_h
  104. #define errno_h 1
  105. #endif
  106.  
  107. #include <std.h>
  108.  
  109. #endif
  110.